<include file="Public:header" />
<div class="container clearfix">
<include file="Public:sidebar" />
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="index.html">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">CPS管理</span></div>
        </div>

        <div class="result-wrap">
            <form name="myform" id="myform" method="post">
                <div class="result-title">
                    <div class="result-list">
                        <a href="<!--{:U('cps/post')}-->"><i class="icon-font"></i>添加CPS</a>
                        <a id="batchDel" href="javascript:void(0)"><i class="icon-font"></i>批量删除</a>
                        <a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th width='8%'>名称</th>
                            <th>渠道名称</th>
                            <th width='5%'>操作</th>                            
                        </tr>
                        <?php foreach($list as $v){ ?>
                        <tr>
                            <td><a href="http://www.248game.com/cps.php?s=login/refer_login/username/<?php echo $v['username'];?>/password/<?php echo $v['password'];?>" target="_blank"><?php echo $v['username'];?></a></td>
                            <td>
                            <?php foreach($v['child'] as $val){
                                foreach($val as $value){
                                    echo $value['username']."-";
                                }
                            }
                            ?>
                            </td>
                            <td>
                                <a class="link-update" href="<!--{:U('cps/post',array('id'=>$v['id']))}-->">修改</a>
                            </td>
                        </tr>                       
                        <?php } ?>
                    </table>
                    <div class="list-page"> 2 条 1/1 页</div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>